import request from "@/utils/request";

export const uploadFileService = (data) => {
  return request.post('/file/upload', data)
}

// export const fileListService = () => {
//   return request.get('/file/list', {})
// }
export const fileListService = (params) => {
  // params 格式：{ page: 1, pageSize: 5 }
  return request.get('/file/query', { params })
}

export const fileDeleteService = (id) => {
  return request.delete(`/file/delete?id=${id}`)
}